<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:comps="http://java.sun.com/jsf/composite/comps"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/visao/templates/templateLista.xhtml">

	<!-- Parametro utilizado pelo templateLista -->
	<ui:param name="pManagedBean" value="#{empresaBean}" />
	<ui:param name="pTituloLista" value="#{i18n['emp.lista.page']}" />
	<ui:param name="pQtdeColunasAcoes" value="4" />
	<ui:param name="pWidthTabela" value="100%" />
	<ui:param name="pIsExibirAcoesPadrao" value="true" />

	<ui:define name="title">
		<h:outputText value="#{i18n['emp.pagina.nome']}" />
	</ui:define>

	<ui:define name="breadCrumb">
		<p:breadCrumb>
			<p:menuitem value="#{i18n['breadcrumb.home']}"
				url="/visao/home.jsf" />
			<p:menuitem value="#{i18n['breadcrumb.empresa']}"
				url="/visao/adminVisao/cadastrosBasicos/cadEmpresa/listaEmpresa.jsf" />
		</p:breadCrumb>
	</ui:define>

	<ui:define name="content">
		<p:column headerText="#{i18n['emp.nome']}" filterBy="#{item.nomeEmpresa}"
			sortBy="#{item.nomeEmpresa}" filterMatchMode="contains">
			<h:outputText value="#{item.nomeEmpresa}" />
		</p:column>

		<p:column headerText="#{i18n['emp.cnpj']}" filterBy="#{item.cnpj}"
			sortBy="#{item.cnpj}" filterMatchMode="contains">
			<h:outputText value="#{item.cnpj}" />
		</p:column>

		<p:column headerText="#{i18n['emp.convenio']}" filterBy="#{item.convenio}"
			sortyBy="#{item.convenio}" filterMatchMode="contains">
			<h:outputText value="#{item.convenio}" />
		</p:column>

		<p:column headerText="#{i18n['emp.nsa']}" filterBy="#{item.nsa}"
			sortBy="#{item.nsa}" filterMatchMode="contains">
			<h:outputText value="#{item.nsa}" />
		</p:column>

		<p:column headerText="#{i18n['emp.febraban']}" filterBy="#{item.codFebraban}"
			sortBy="#{item.codFebraban}" filterMatchMode="contains">
			<h:outputText value="#{item.codFebraban}" />
		</p:column>

	</ui:define>

	<ui:define name="demaisAcoes">

		<h:commandLink title="#{i18n['emp.demaisAcoes.filial']}" action="#{filialBean.showListagem}" >
			<f:setPropertyActionListener value="#{item}" target="#{filialBean.empresaCorrente}" />
			<p:graphicImage value="/resources/imagens/filial.png" style="border:none" />
		</h:commandLink>

	</ui:define>
</ui:composition>

</html>